#ifndef SYSTEM_ROOT_H_
#define SYSTEM_ROOT_H_
/*********************************************************/
#include "server/Server.h"

/*********************************************************/
class SystemRoot
{
private:
	static SystemRoot*	sysRoot; 		// Used to secure a single instance ( this is no singleton! )
	Server			server;			// The server object handling the jobs

public:
	// Control Methods
	void start(const std::string&);			// Starts the server with a specified ring name
	void start();					// Starts the server ( ringname is in config.ini! )
	void stop();					// Stops the server
	void run();					// Runs the server until a quit message is received or a quit is forced

	// Construction & Destruction
	SystemRoot();
	virtual ~SystemRoot();
};
/*********************************************************/
#endif //SYSTEM_ROOT_H_
